/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class DiagnoseCriteria extends AbstractORMCriteria {
	public final IntegerExpression idDiag;
	public final StringExpression diagnostico;
	
	public DiagnoseCriteria(Criteria criteria) {
		super(criteria);
		idDiag = new IntegerExpression("idDiag", this);
		diagnostico = new StringExpression("diagnostico", this);
	}
	
	public DiagnoseCriteria(PersistentSession session) {
		this(session.createCriteria(Diagnose.class));
	}
	
	public DiagnoseCriteria() throws PersistentException {
		this(orm.Taller1PDSPersistentManager.instance().getSession());
	}
	
	public BabyMonitorCriteria createBabyMonitorCodSystemCriteria() {
		return new BabyMonitorCriteria(createCriteria("babyMonitorCodSystem"));
	}
	
	public PacientCriteria createPacientidPacienteCriteria() {
		return new PacientCriteria(createCriteria("pacientidPaciente"));
	}
	
	public SolutionCriteria createSolutionCriteria() {
		return new SolutionCriteria(createCriteria("solution"));
	}
	
	public Diagnose uniqueDiagnose() {
		return (Diagnose) super.uniqueResult();
	}
	
	public Diagnose[] listDiagnose() {
		java.util.List list = super.list();
		return (Diagnose[]) list.toArray(new Diagnose[list.size()]);
	}
}

